* {
  margin: 0;
  padding: 0;
}

html,body{
  width: 100%;
  height: 100%;
  background-image: linear-gradient(150deg, #fdfbfb 0%, #ebedee 100%);
  display: flex;
  justify-content: center;
}

div{
  margin: 5px auto;
  display: flex;
  flex-direction: column;
}

div{
  animation-name: left-to-right;
  animation-duration: 1.5s;
  animation-timing-function: ease-in-out;
  animation-direction: alternate;
}

@keyframes left-to-right{
  0% {
    opacity: 0;
    transform: translate3d(-3000px, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(25px, 0, 0);
  }
  75% {
    transform: translate3d(-10px, 0, 0);
  }
  90% {
    transform: translate3d(15px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.warning-text{
  display: inline-block;
  width: 100%;
  height: 30px;
  line-height: 30px;
  font-size: 16px;
  font-style: italic;
  font-weight: bolder;
  color: chocolate;
  text-align: center;
  cursor: default;
}

.main-table{
  margin-top: 3px;
  padding-top: 15px;
  border-spacing: 10px;
  background: #DCDCDC;
  border-radius: 10px;
  box-sizing: border-box;
  border: 1px solid #999;
  box-shadow: 0 0 0 0.3rem #DCDCDC;
}

input{
  width: 100%;
  height: 90%;
  text-align: right;
  font-weight: bolder;
  font-size: 1.8em;
  border: 1px solid #999;
  box-sizing: border-box;
  border-radius: 5px;
  outline: none;
  cursor: text;
}

.main-table tr td{
  width: 85px;
  height: 65px;
  border-radius: 5px;
}

button{
  width: 100%;
  height: 100%;
  font-size: 1.8em;
  font-weight: bolder;
  padding: 5px;
  background: whitesmoke;
  outline: none;
  border-radius: 5px;
  box-sizing: border-box;
  border: 1px solid #999;
  box-shadow: 3px 5px 1px #777;
  cursor: pointer;
}

button:hover{
  transition-duration: 0.3s;
  background: antiquewhite;
}

button:active{
  transition-duration: 0.1s;
  box-shadow: 1px 2px 1px #777;
}

.clear-input{
  color: tomato;
}

.enter-result:hover{
  transition-duration: 0.3s;
  background: #ecffd3;
}

.history-memory{
  border: 3px double #DCDCDC;
  border-radius: 3em;
  margin-top: 0.3em;
  margin-bottom: 5px;
  text-align: center;
  cursor: pointer;
  font-size: large;
}

.history-memory caption{
  color: chocolate;
  font-weight: bolder;
}
